package cn.kpi.dao.teamassessment;

import cn.kpi.common.persistence.MyBatisDao;
import cn.kpi.entity.teamassessment.BUKPItemEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@MyBatisDao
public interface BUKPIDao {

    public List<Map> GetBUKPIMapByTempIdAndColumns(@Param("tempid") Long tempid, @Param("columns") String columns) throws Exception;

    public List<Map> GetBUKPIMapByTempId(@Param("tempid") String tempids, @Param("divisor") int divisor) throws Exception;

    public int InsertBUKPItemBatch(List<BUKPItemEntity> list) throws Exception;

    public int DeleteBUKPItem(@Param("templateid") Long templateid);


    public List<Map> GetScoreByTemplateid(@Param("where") String where);
}
